DXS CHANGE SPRITE TEXTURE

Delete the old texture used by the sprite and loads a new one.
The optionnal parameter allows to indicate how will be done the tileset/frameset update, if the new image has not the same size than the old one. At 1, the new size will be calculated from the tile/frame size. At 0, the tiles/frales size will be calculated from the tileset/frameset size.

Syntax

DXS CHANGE SPRITE TEXTURE Sprite Pointer, Filename
DXS CHANGE SPRITE TEXTURE Sprite Pointer, Filename, Update Mode


AdvancedSPRITES : Commands Menu